package ldh.text.util;

import javafx.scene.Scene;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;

public class RegionUtil {

    private transient static Stage stage;
    private transient static Scene scene;
    private volatile static StackPane rootPane;

    public static void setRootPane(StackPane pane) {
        rootPane = pane;
    }

    public static StackPane getRootPane() {
        return rootPane;
    }

    public static Stage getStage() {
        return stage;
    }

    public static void setStage(Stage stage) {
        RegionUtil.stage = stage;
    }

    public static Scene getScene() {
        return scene;
    }

    public static void setScene(Scene scene) {
        RegionUtil.scene = scene;
    }
}
